package com.millstein.tsinglog.model.dto.notice;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * manage中保存公告的实体
 */
@Data
public class NoticeSaveDTO {

    private Long id;

    @NotBlank
    @Length(max = 50)
    private String content;

    @NotNull
    @Max(2)
    @Min(1)
    private Short type;

    private String linkHandled;

    @NotNull
    @Max(1)
    @Min(0)
    private Short usable;

}
